import React, { Component } from 'react'
import '../assets/styles/k-input.less'

export default class KInput extends Component {
    render() {
        return (
            <div className={`k-input ${this.props.className}`}>
                {/* <i className={['iconfont', this.props.icon].join(' ')}></i> */}
                <i className={`iconfont ${this.props.icon}`}></i>
                <input value={this.props.value} onChange={this.props.onChange} type={this.props.type} placeholder={this.props.placeholder} />
            </div>
        )
    }
}
